import request from '@/utils/request'
// import axios from 'axios'
import { apiVersion } from '@/config'

// 获取详情
export function getAnnLabelDetail(data) {
    return request({
        url: `/admin/${apiVersion}/AnnLabel/${data.id}`,
        method: 'get',
        data
    })
}
// 分页列表
export function getAnnLabels(data) {
    return request({
        url: `/admin/${apiVersion}/AnnLabel`,
        method: 'get',
        data
    })
}

// 删除
export function delAnnLabel(data) {
    return request({
        url: `/admin/${apiVersion}/AnnLabel/${data.id}`,
        method: 'delete',
        data
    })
}
// 创建
export function addAnnLabel(data) {
    return request({
        url: `/admin/${apiVersion}/AnnLabel`,
        method: 'post',
        data
    })
}
export function putAnnLabel(data) {
    return request({
      url: `/admin/${apiVersion}/AnnLabel`,
      method: 'put',
      data: data
    })
  }
// 查询列表
export function getAllAnnLabels(data) {
    return request({
        url: `/admin/${apiVersion}/AnnLabel/all`,
        method: 'get',
        data
    })
}
